package com.caine.web;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan("com.caine.web.mapper")
public class WebApplication {

    public static void main(String[] args) {
//        SpringApplication.run(WebApplication.class, args);
        SpringApplication boot = new SpringApplication(WebApplication.class);
        boot.setWebApplicationType(WebApplicationType.SERVLET);
        boot.run(args);
    }

}
